﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CanDichVu.Db;

namespace CanDichVu.Service.Iservice
{
    public interface IUser
    {
        int addOrupdate(ThanhVien entity);
        ThanhVien GetByUserName(string userName);
        ThanhVien GetByUserByEmail(string Email);
        ThanhVien GetByUserById(int id);
        string[] GetRolesForUser(string username);
        bool deleteByName(string userName);
        bool ChangePassword(string username, string oldPassword, string newPassword);
        bool ValidateUser(string username, string password);
        bool LoginUser(string Info, string password);
        ThanhVien LogIn(string username, string Password);
        bool AddUsersToRoles(int userId, string roleNames);
    }
}
